<?php 
include "movie.php";
if(isset($_GET["format"])&& $_GET["format"]="json"){
	$movie=new movie("Cosmos","adventure","130","<iframe width=\"560\" height=\"315\" src=\"//www.youtube.com/embed/kBTd9--9VMI\" frameborder=\"0\" allowfullscreen></iframe>","http://www.armedtoserve.com/Photography1/Cosmos_wallpaper_by_Maxtorade.jpg","and some description or something");
	//$info=json_encode($movie);
	var_dump($movie);
	//var_dump($info);
	echo json_encode($movie);
	//var_dump(json_encode($movie));
}
?>